-- GENERATED SPELL FOR [Plagued Hatchling] --


function spell0_10678(pUnit, Event) --@Diseased Spit,n/a--
pUnit:FullCastSpellOnTarget(17745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10678', 13000, 1)
end

function Sorts_10678(pUnit, Event)
local choix_sorts_10678 = math.random(0, 0)
if choix_sorts_10678 == 0 then
pUnit:RegisterEvent('spell0_10678', 1, 1)
end
end

function mob10678_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10678', math.random(1500, 3000), 1)
end

function mob10678_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10678_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10678_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10678, 1, 'mob10678_Action')
RegisterUnitEvent(10678, 2, 'mob10678_Leave')
RegisterUnitEvent(10678, 3, 'mob10678_Kill')
RegisterUnitEvent(10678, 4, 'mob10678_Die')
